package biz.datalk.industrialland.mbg.mapper;

import biz.datalk.industrialland.mbg.pojo.po.SysUser;
import biz.datalk.industrialland.mbg.pojo.po.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
    int insertSelective(SysUserRole record);

    int updateByPrimaryKeySelective(SysUserRole record);

    List<String> selectRoleCodeBySysUserId(@Param("sysUserId") Long sysUserId);

    List<SysUser> selectValidSysUserByRoleCode(String roleCode);

    /** 不包含 sys_uer.id=1 的用户 */
    List<String> selectValidSysUserPhoneByRoleCode(String roleCode);
}